package com.clinic.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.PrimaryKeyJoinColumn;

import com.clinic.domain.Clinic;

@Entity
@PrimaryKeyJoinColumn(name = "cr_obj_id")
public class Center extends Clinic {

	private static final long serialVersionUID = 1L;

	@Column(insertable = false, updatable = false)
	private int cr_obj_id;
	@Column(length = 1024)
	private String dr_obj_ids;

	public Center() {
		super();
	}

	public Center(String obj_owner_name, String name, String address,
			String area, String sub_area, String workdays, String mobile_phone,
			String mobile_phone2, String home_phone, String owner_doctor,
			String admin_user, String speciality, String email,
			String site_url, String status, boolean is_clinic, int cr_obj_id,
			String dr_obj_ids) {
		super(obj_owner_name, name, address, area, sub_area, workdays,
				mobile_phone, mobile_phone2, home_phone, owner_doctor,
				admin_user, speciality, email, site_url, status, is_clinic);
		this.cr_obj_id = cr_obj_id;
		this.dr_obj_ids = dr_obj_ids;
	}

	public int getCr_obj_id() {
		return cr_obj_id;
	}

	public String getDr_obj_ids() {
		return dr_obj_ids;
	}

	public void setDr_obj_ids(String dr_obj_ids) {
		this.dr_obj_ids = dr_obj_ids;
	}

	@Override
	public void _toString() {
		System.out.println("Enter - _toString");
		super._toString();
		System.out.println("dr_obj_ids: " + this.dr_obj_ids);
		System.out.println("Exit - _toString");
	}
}